home *** CD-ROM | disk | FTP | other *** search
/ Champak 122 / Vol 122.iso / games / treasure.swf / scripts / frame_3 / PlaceObject2_64_128 / CLIPACTIONRECORD onClipEvent(load).as
Encoding:
Text File  |  2011-01-06  |  1.6 KB  |  59 lines

  1. onClipEvent(load){
  2.    function setMode(m)
  3.    {
  4.       if(m == "good")
  5.       {
  6.          this._visible = true;
  7.          setScale(100);
  8.       }
  9.       else if(m == "bad")
  10.       {
  11.          setScale(100);
  12.       }
  13.       else if(m == "ugly")
  14.       {
  15.          setScale(100);
  16.       }
  17.       else
  18.       {
  19.          this._visible = false;
  20.          setScale(100);
  21.       }
  22.    }
  23.    function setScale(s)
  24.    {
  25.       this._xscale = s;
  26.       this._yscale = s;
  27.    }
  28.    this._visible = false;
  29.    this.colorHandle = new color(this);
  30.    this.colorTransformOriginal = this.ColorHandle.getTransform();
  31.    this.colorTransformRed = new Object();
  32.    this.colorTransformRed.ra = 70;
  33.    this.colorTransformRed.rb = 70;
  34.    this.colorTransformRed.ga = 0;
  35.    this.colorTransformRed.gb = 0;
  36.    this.colorTransformRed.ba = 0;
  37.    this.colorTransformRed.bb = 0;
  38.    this.colorTransformRed.aa = 70;
  39.    this.colorTransformRed.ab = 70;
  40.    this.colorTransformGreen = new Object();
  41.    this.colorTransformGreen.ra = 0;
  42.    this.colorTransformGreen.rb = 0;
  43.    this.colorTransformGreen.ga = 70;
  44.    this.colorTransformGreen.gb = 70;
  45.    this.colorTransformGreen.ba = 0;
  46.    this.colorTransformGreen.bb = 0;
  47.    this.colorTransformGreen.aa = 70;
  48.    this.colorTransformGreen.ab = 70;
  49.    this.colorTransformGrey = new Object();
  50.    this.colorTransformGrey.ra = 30;
  51.    this.colorTransformGrey.rb = 0;
  52.    this.colorTransformGrey.ga = 30;
  53.    this.colorTransformGrey.gb = 0;
  54.    this.colorTransformGrey.ba = 30;
  55.    this.colorTransformGrey.bb = 0;
  56.    this.colorTransformGrey.aa = 70;
  57.    this.colorTransformGrey.ab = 70;
  58. }
  59.